package com.liang.gulimall.seckill.service;

import com.liang.gulimall.seckill.to.SecKillSkuInfoRedis;

import java.util.List;

public interface SecKillService {
    void uploadSecKillSkuWith3Day();

    List<SecKillSkuInfoRedis> getCurrentSecSku();

    /**
     * 根据skuid查询该商品是否参与秒杀，是则传回秒杀信息
     * @param skuId
     * @return
     */
    SecKillSkuInfoRedis getSkuSecKillInfo(Long skuId);

    String kill(String killId, String key, Integer num);
}
